<Schema name="FDTCANopenScanIdentSchema" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:canopenident="x-schema:FDTCANopenIdentSchema.xml" xmlns:fdt="x-schema:FDTDataTypesSchema.xml">
    <!-- Definition of Attributes-->
    <AttributeType name="schemaVersion" dt:type="number" default="0.90"/>
    <AttributeType name="resultState" dt:type="enumeration" dt:values="provisional final error"/>
  
    <!--Definition of Elements-->
    <ElementType name="IdBusProtocol" content="empty" model="closed">
      <attribute type="canopenident:busProtocol" required="yes"/>
    </ElementType>

    <ElementType name="IdAddress" content="empty" model="closed">
      <attribute type="canopenident:nodeID" required="yes"/>
    </ElementType>    

    <ElementType name="IdTypeID" content="empty" model="closed">
      <!-- Object 1000 hex -->
      <attribute type="fdt:deviceTypeId" required="yes"/>
    </ElementType>

    <ElementType name="IdDeviceName" content="empty" model="closed">
      <!-- Object 1008 hex -->
      <attribute type="fdt:name" required="yes"/>
    </ElementType>
    
    <ElementType name="IdHardwareVersion" content="empty" model="closed">
      <!-- Object 1009 hex -->
      <attribute type="fdt:version" required="yes"/>
    </ElementType>
    
    <ElementType name="IdSoftwareVersion" content="empty" model="closed">
      <!-- Object 100A hex -->
      <attribute type="fdt:version" required="yes"/>
    </ElementType>
    
    <ElementType name="IdManufacturer" content="empty" model="closed">
      <!-- Object 1018 hex sub 1 -->
      <attribute type="fdt:manufacturerId" required="yes"/>
    </ElementType>
    
    <ElementType name="IdProductCode" content="empty" model="closed">
      <!-- Object 1018 hex sub 2 -->
      <attribute type="canopenident:productCode" required="no"/>
    </ElementType>
    
    <ElementType name="IdRevision" content="empty" model="closed">
      <!-- Object 1018 hex sub 3 -->
      <attribute type="canopenident:revisionNumber" required="no"/>
    </ElementType>
    
    <ElementType name="IdSerial" content="empty" model="closed">
      <!-- Object 1018 hex sub 4 -->
      <attribute type="canopenident:serialNumber" required="no"/>
    </ElementType>

    <ElementType name="ScanIdentification" content="eltOnly" model="closed">
      <element type="fdt:CommunicationError" minOccurs="0" maxOccurs="1"/>
      <element type="IdBusProtocol" minOccurs="1" maxOccurs="1"/>
      <element type="IdTypeID" minOccurs="1" maxOccurs="1"/>
      <element type="IdAddress" minOccurs="1" maxOccurs="1"/>
      <element type="IdDeviceName" minOccurs="0" maxOccurs="1"/>
      <element type="IdHardwareVersion" minOccurs="0" maxOccurs="1"/>
      <element type="IdSoftwareVersion" minOccurs="0" maxOccurs="1"/>
      <element type="IdManufacturer" minOccurs="0" maxOccurs="1"/>
      <element type="IdProductCode" minOccurs="0" maxOccurs="1"/>
      <element type="IdRevision" minOccurs="0" maxOccurs="1"/>
      <element type="IdSerial" minOccurs="0" maxOccurs="1"/>
    </ElementType>	
  
    <ElementType name="ScanIdentifications" content="eltOnly" model="closed">
      <attribute type="fdt:busCategory" required="yes"/>
      <attribute type="resultState" required="yes"/>
      <element type="ScanIdentification" minOccurs="0" maxOccurs="*"/>
    </ElementType>

    <ElementType name="FDT" content="eltOnly" model="closed">
      <element type="ScanIdentifications" minOccurs="1" maxOccurs="1"/>
    </ElementType>
</Schema>